angular.module('contacts', [])
.controller('contactsCtrl', ['$scope', 'httpService', 'alertmsg', function($scope, httpService, alertmsg) {
  // 获取管理成员
  var pagenum = 1;
  $scope.manage = function(page) {
      if (page) {
          pagenum = page;
      }
      httpService.query('web/users/manager', { page: pagenum, limit: limit }).then(function(res) {
          if (res.code == 200) {
            $scope.users = res.users;
            $scope.page = res.page;
          }
      })
  };
  $scope.manage(1);
}]);
